import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Menu from '@/components/Menu'
import Register from "@/components/Register"
import Menage from "@/components/Menage"

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
        path:'/home',
        name:'Home',
        component:Home
    },{
      path:'/register',
      name:'Register',
      component:Register
    },
    {
      path:'/menage',
      name:'Menage',
      component:Menage,
    },
    {
      path:'*',
      redirect:'/login'
    }
  ]
})
